﻿using System.Runtime.Serialization;
using LiSA_Server.Base.NHibernate.Models;
using NHibernate;
using NHibernate.Mapping.ByCode.Conformist;

namespace LiSA_Service.ResearchProjects.Models
{
    [DataContract]
    public class ProjectCriteria : Entity
    {
        [DataMember]
        public virtual string CriteriaID { get; set; }

        [DataMember]
        public virtual string Description { get; set; }

        [DataMember]
        public virtual bool IsInclusion { get; set; }
    }

    /// <summary>
    /// The ArticleFeedback mapping.
    /// </summary>
    public class ProjectCriteriaMapping : ClassMapping<ProjectCriteria>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ResearchProjectMapping"/> class.
        /// </summary>
        public ProjectCriteriaMapping()
        {
            this.Property(x => x.Description, x => x.Type(NHibernateUtil.StringClob));
            this.Property(x => x.CriteriaID);
            this.Property(x => x.IsInclusion);
        }
    }
}